package cc.service.impl;

import cc.entity.Test;
import cc.repository.TestRepository;
import cc.service.ITestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * TODO
 *
 * @author My
 * @date 2021/6/22 14:57
 */
@Service
public class TestServiceImpl implements ITestService {

    @Autowired
    TestRepository testRepository;
    @Override
    public List<Test> list() {
        return testRepository.listAll();
    }
}
